

#import "FAMBasicsViewController.h"

@interface FAMBasicsViewController ()

@end

@implementation FAMBasicsViewController
- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(FAM_removeTabBarBtn) name:@"FAM_removeTabBarBtn" object:nil];
    
    for (UIView *child in self.tabBarController.tabBar.subviews) {
        if ([child isKindOfClass:[UIControl class]]) {
            [child removeFromSuperview];
        }
    }
}
-(void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    [[NSNotificationCenter defaultCenter]removeObserver:self name:@"FAM_removeTabBarBtn" object:nil];
}
- (void)FAM_removeTabBarBtn {
    for (UIView *tabBar in self.tabBarController.tabBar.subviews) {
        if ([tabBar isKindOfClass:NSClassFromString(@"UITabBarButton")]) {
            [tabBar removeFromSuperview];
        }
    }
}
- (void)viewDidLoad {
    [super viewDidLoad];
}
@end
